package com.woniu.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.entity.Dept;
import com.woniu.entity.ProPurchase;
import com.woniu.entity.PurApprove;
import com.woniu.entity.User;
import com.woniu.mapper.PurApproveMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hyl
 * @since 2022-08-28
 */
public interface IProPurApproveService extends IService<PurApprove> {
    void add(PurApprove purApprove);

    void delete (int purApproveId);

    void update(PurApprove purApprove);

    List<PurApprove> getAll();

    PurApprove getByPurApproveId(int purApproveId);

    List<PurApprove> getByDeptId(int deptId);

    List<PurApprove> getByUserId(int userId);

    List<PurApprove> getRefuseByPurUserId(int userId);

    void pass(int purApproveId, String apdate, String apfeedback );

    void refuse(int purApproveId, String apdate, String apfeedback );

    Page<PurApprove> getPurApproveByPage(Integer pageNum, Integer pageSize,PurApprove purApprove);

    List<PurApprove> getPurApproveByCondition(PurApprove purApprove);


}
